<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class Baidu\Duer\Botsdk\Card\BaseCard</title>

	<link rel="stylesheet" href="resources/style.css?c2f33731c1948fbed7c333554678bfa68d4817da">

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>


		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
				<li class="active">
					<a href="namespace-Baidu.html">
						Baidu<span></span>
					</a>

						<ul>
				<li class="active">
					<a href="namespace-Baidu.Duer.html">
						Duer<span></span>
					</a>

						<ul>
				<li class="active">
					<a href="namespace-Baidu.Duer.Botsdk.html">
						Botsdk<span></span>
					</a>

						<ul>
				<li class="active">
					<a href="namespace-Baidu.Duer.Botsdk.Card.html">
						Card					</a>

						</li>
				<li>
					<a href="namespace-Baidu.Duer.Botsdk.Directive.html">
						Directive<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-Baidu.Duer.Botsdk.Directive.AppLauncher.html">
						AppLauncher					</a>

						</li>
				<li>
					<a href="namespace-Baidu.Duer.Botsdk.Directive.AudioPlayer.html">
						AudioPlayer					</a>

						</li>
				<li>
					<a href="namespace-Baidu.Duer.Botsdk.Directive.WebBrowser.html">
						WebBrowser					</a>

						</li>
							</ul></li>
				<li>
					<a href="namespace-Baidu.Duer.Botsdk.Plugins.html">
						Plugins					</a>

						</li>
							</ul></li></ul></li></ul></li>
			</ul>
		</div>

		<hr>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li class="active"><a href="class-Baidu.Duer.Botsdk.Card.BaseCard.html">BaseCard</a></li>
				<li><a href="class-Baidu.Duer.Botsdk.Card.ImageCard.html">ImageCard</a></li>
				<li><a href="class-Baidu.Duer.Botsdk.Card.ListCard.html">ListCard</a></li>
				<li><a href="class-Baidu.Duer.Botsdk.Card.ListCardItem.html">ListCardItem</a></li>
				<li><a href="class-Baidu.Duer.Botsdk.Card.StandardCard.html">StandardCard</a></li>
				<li><a href="class-Baidu.Duer.Botsdk.Card.TextCard.html">TextCard</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="">
		<input type="hidden" name="ie" value="UTF-8">
		<input type="text" name="q" class="text" placeholder="Search">
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="namespace-Baidu.Duer.Botsdk.Card.html" title="Summary of Baidu\Duer\Botsdk\Card"><span>Namespace</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class BaseCard</h1>





	<div>
		<h4>Direct known subclasses</h4>
			<a href="class-Baidu.Duer.Botsdk.Card.ImageCard.html">Baidu\Duer\Botsdk\Card\ImageCard</a>, 
			<a href="class-Baidu.Duer.Botsdk.Card.ListCard.html">Baidu\Duer\Botsdk\Card\ListCard</a>, 
			<a href="class-Baidu.Duer.Botsdk.Card.ListCardItem.html">Baidu\Duer\Botsdk\Card\ListCardItem</a>, 
			<a href="class-Baidu.Duer.Botsdk.Card.StandardCard.html">Baidu\Duer\Botsdk\Card\StandardCard</a>, 
			<a href="class-Baidu.Duer.Botsdk.Card.TextCard.html">Baidu\Duer\Botsdk\Card\TextCard</a>
	</div>






	<div class="info">
		<b>Abstract</b><br>
		
		<b>Namespace:</b> <a href="namespace-Baidu.html">Baidu</a>\<a href="namespace-Baidu.Duer.html">Duer</a>\<a href="namespace-Baidu.Duer.Botsdk.html">Botsdk</a>\<a href="namespace-Baidu.Duer.Botsdk.Card.html">Card</a><br>
		

			<b>Located at</b> <a href="source-class-Baidu.Duer.Botsdk.Card.BaseCard.html#21-99" title="Go to source code">Card/BaseCard.php</a>
		<br>
	</div>



	<table class="summary methods" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="__construct" id="___construct">

		<td class="attributes"><code>
			 public 

			null
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___construct">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Card.BaseCard.html#24-30" title="Go to source code">__construct</a>( <span>array <var>$fields</var> = []</span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$fields</var></dt>
					<dd>允许通过魔术方法设置的字段</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					null
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="addCueWords" id="_addCueWords">

		<td class="attributes"><code>
			 public 

			<code><a href="class-Baidu.Duer.Botsdk.Card.BaseCard.html">Baidu\Duer\Botsdk\Card\BaseCard</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_addCueWords">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Card.BaseCard.html#32-48" title="Go to source code">addCueWords</a>( <span>array|string <var>$arr</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$arr</var></dt>
					<dd>比如：['###', '###',...,'###'], 或者'###'</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-Baidu.Duer.Botsdk.Card.BaseCard.html">Baidu\Duer\Botsdk\Card\BaseCard</a></code>
				</div>


				<h4>Desc</h4>
				<div class="list">
						为卡片添加cue words 提示用户输入<br>
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="setAnchor" id="_setAnchor">

		<td class="attributes"><code>
			 public 

			<code><a href="class-Baidu.Duer.Botsdk.Card.BaseCard.html">Baidu\Duer\Botsdk\Card\BaseCard</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setAnchor">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Card.BaseCard.html#50-66" title="Go to source code">setAnchor</a>( <span>string <var>$url</var></span>, <span>boolean <var>$anchorText</var> = <span class="php-quote">''</span></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$url</var></dt>
					<dd>比如:http(s)://....</dd>
					<dt><var>$anchorText</var></dt>
					<dd>链接显示的文字</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-Baidu.Duer.Botsdk.Card.BaseCard.html">Baidu\Duer\Botsdk\Card\BaseCard</a></code>
				</div>


				<h4>Desc</h4>
				<div class="list">
						设置卡片链接<br>
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="getData" id="_getData">

		<td class="attributes"><code>
			 public 

			array|null
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getData">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Card.BaseCard.html#68-78" title="Go to source code">getData</a>( <span>string <var>$key</var> = <span class="php-quote">''</span></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd>字段名。如果没有返回整个数据</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					array|null
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="__call" id="___call">

		<td class="attributes"><code>
			 public 

			null
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___call">#</a>
		<code><a href="source-class-Baidu.Duer.Botsdk.Card.BaseCard.html#80-98" title="Go to source code">__call</a>( <span>string <var>$name</var></span>, <span>array <var>$arguments</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$name</var></dt>
					<dd></dd>
					<dt><var>$arguments</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					null<br>| $this;
				</div>


				<h4>Desc</h4>
				<div class="list">
						魔术方法<br>
				</div>


		</div>
		</div></td>
	</tr>
	</table>












	<table class="summary properties" id="properties">
	<caption>Properties summary</caption>
	<tr data-order="data" id="$data">
		<td class="attributes"><code>
			protected  
			array
		</code></td>

		<td class="name">
				<a href="source-class-Baidu.Duer.Botsdk.Card.BaseCard.html#22" title="Go to source code"><var>$data</var></a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</td>
		<td class="value">
			<div>
				<a href="#$data" class="anchor">#</a>
				<code>[]</code>
			</div>
		</td>
	</tr>
	<tr data-order="supportSetField" id="$supportSetField">
		<td class="attributes"><code>
			protected  
			array
		</code></td>

		<td class="name">
				<a href="source-class-Baidu.Duer.Botsdk.Card.BaseCard.html#23" title="Go to source code"><var>$supportSetField</var></a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</td>
		<td class="value">
			<div>
				<a href="#$supportSetField" class="anchor">#</a>
				<code>[]</code>
			</div>
		</td>
	</tr>
	</table>






</div>

	<div id="footer">
		 API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
